<template>
	<view class="yanpan">
		<view class="content">
			<view class="content-text" v-for="item in list" :key="item.id" @click="study(item)">
				<text>{{item.createTime.toString().substring(0,4)}}.{{item.createTime.toString().substring(4,6)}}.{{item.createTime.toString().substring(6,8)}} {{item.createTime.toString().substring(8,10)}}:{{item.createTime.toString().substring(8,10)}}</text>
		<u-icon name="arrow-right"></u-icon>
			</view>
		</view>
	</view>
</template>

<script>
	import {riskAnnalListAPI} from '../../api/api.js'
	export default {
		data() {
			return {
				list:[]
			}
		},
		mounted() {
			riskAnnalListAPI({}).then((r)=>{
			  this.list = r.data.reverse()
			})
		},
		methods: {
			study(val){
				uni.navigateTo({
					url:`/pages/studyandjudgeTwo/studyandjudgeTwo?id=${val.id}`
				})
			}
		}
	}
</script>

<style lang="scss">
.yanpan{
	width: 100%;
	height: 100vh;
	background-color: #F6F6F6;
  overflow-y: auto;
	.content{
		padding: 40rpx 24rpx;
		box-sizing: border-box;
		.content-text{
      margin-bottom: 20rpx;
			width: 702rpx;
			height: 108rpx;
			padding: 32rpx 48rpx;
			box-sizing: border-box;
			background-color: #fff;
			border-radius: 16rpx;
			display: flex;
			justify-content:space-between;
			color: #333333;
			font-size: 32rpxl;
		}
	}
}
</style>
